

/********************************************************************************
Evolution vs. Creationism in the Classroom: The Lasting Effects of Science Education

Created on: 5/20/2024
Last Modified on: 5/24/2024

Description: This is the master do-file for my project. A replicator that runs this program will be able to replicate all figures and tables that contain empirical results from the paper.

********************************************************************************/

**************************
**(0) SETUP
**************************

clear
set more off
macro drop all
capture log close

*Set global directories (replace "X" with local directory where the replication package is stored):
global path "X\Replication Package"


*************************
**(1) INSTALL PACKAGES NEEDED FOR REPLICATION 
*************************

ssc install event_plot, replace 

ssc install csdid, replace 

ssc install estout, replace

ssc install coefplot, replace 

ssc install honestdid, replace 

ssc install ftools, replace

ssc install reghdfe, replace


*************************
**(2) GENERATE TABLES AND FIGURES IN THE PAPER 
*************************

cd "${path}\code\naep_analysis\"

do naep_prepare.do

do naep_output.do


cd "${path}\code\gss_analysis\"

do gss_prepare.do

do gss_output.do


cd "${path}\code\acs_analysis\"

do acs_prepare.do

do acs_output.do


cd "${path}\code\vaccinations_analysis\"

do vaccinations_prepare.do

do vaccinations_output.do


cd "${path}\code\states_analysis\"

do states_prepare.do

do states_output.do


cd "${path}\code\googletrends_analysis\"

do googletrends_prepare.do

do googletrends_output.do


cd "${path}\code\text_analysis\"

do text_prepare.do

do text_output.do


cd "${path}\code\hsbt_analysis\"

do hsbt_prepare.do

do hsbt_output.do